import { createI18n } from 'vue-i18n'
import zhHans from './zh-Hans'
import zhUyghur from './zh-Uyghur'
const messages = {
	'zh-Hans': zhHans,
	'zh-Uyghur': zhUyghur,
}
const i18n = createI18n({
	legacy: false,
	globalInjection: true,
	locale: uni.getStorageSync('lang') == '' ? uni.getLocale() : uni.getStorageSync('lang'),
	messages: messages
})
export default i18n